<?php

namespace ms\modules\article\models;

use Yii;

/**
 * This is the model class for table "dh_hot_selling_rank".
 *
 * @property integer $id
 * @property integer $rank
 * @property string $name
 */
class HotSellingRank extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'dh_hot_selling_rank';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['rank'], 'required'],
            [['rank'], 'integer'],
            [['name'], 'string', 'max' => 255]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => '编号',
            'rank' => '排名',
            'name' => '商品名称',
        ];
    }
}
